package edu.zut.part5;

public class WaysDemo {
     public static void swap(int[] a){
        int temp;
        temp = a[0];
        a[0] = a[1];
        a[1] = temp;
    }
    public static void main(String[] args){
        int[] a={1,2};
        swap(a);
        System.out.print("a[0]="+a[0]+" a[1]="+a[1]);
    }
}
